//
//  UserConfig.m
//  YOYOLive
//
//  Created by 王根强 on 2016/10/10.
//  Copyright © 2016年 王根强. All rights reserved.
//

#import "UserConfig.h"

#define YuserIsRealName             @"YuserIsRealName"
#define YuserIsR                    @"YuserIsR"
#define YappUserID                  @"YappuserID"
#define Yuser_Id                    @"Yuser_Id"
#define YrongyunToken               @"YrongyunToken"
#define YrongyunID                  @"YrongyunID"
#define YuserType                   @"YuserType"
#define YuserScore                  @"YuserScore"
#define YuserGrade                  @"YuserGrade"
#define YuserStar                   @"YuserStar"
#define YuserGoldNumber             @"YuserGoldNumber"
#define YuserTicketNumber           @"YuserTicketNumber"
#define YmobileNum                  @"YmobileNum"
#define YuserName                   @"YuserName"
#define YuserUrl                    @"YuserUrl"
#define YuserGender                 @"YuserGender"
#define YuserBirthday               @"YuserBirthday"
#define YuserAge                    @"YuserAge"
#define YuserConstellation          @"YuserConstellation"
#define YuserAddress                @"YuserAddress"
#define YuserSignature              @"YuserSignature"
#define YuserLove                   @"YuserLove"
#define YuserJob                    @"YuserJob"
#define YuserEmail                   @"YuserEmail"
#define YuserIsNewUser              @"YuserIsNewUser"
#define YuserLevel                  @"YuserLevel"
#define YuserLevelPic               @"YuserLevelPic"
#define YuserStart                  @"YuserStart"
#define YuserGiveZuanNum            @"YuserGiveZuanNum"
#define YuserGainTicketNumber       @"YuserGainTicketNumber"
#define YisLastNo                   @"YisLastNo"
#define YisEnergyNo                 @"YisEnergyNo"
#define YuserRongCloudToken         @"YuserRongCloudToken"
#define YuserIsShowEnterRoomTip     @"YuserIsShowEnterRoomTip"
#define YuserTag                    @"YuserTag"
#define YuserStatus                 @"YuserStatus"
#define YgiftInfoListArray          @"YgiftInfoListArray"
#define YstatsListArray             @"YstatsListArray"
#define YisSetPayPwd                @"YisSetPayPwd"
#define YisBuyZuan                  @"YisBuyZuan"
#define YisFirstLive                @"YisFirstLive"
#define YiosAuditSwitch             @"YiosAuditSwitch"
#define YisShowYoubi                @"YisShowYoubi"
#define YuserScoreMax               @"YuserScoreMax"
#define YuserScoreMin               @"YuserScoreMin"
#define YliveSysTip                 @"YliveSysTip"
#define YupdateInfo                 @"YupdateInfo"
#define YisLogin                    @"YisLogin"

@interface UserConfig () {
    NSUserDefaults *userDefaults;
}

@end

@implementation UserConfig
@synthesize _userIsRealName;
@synthesize _userIsR;
@synthesize _appUserID;
@synthesize _user_Id;
@synthesize _rongyunToken;
@synthesize _rongyunID;
@synthesize _userType;
@synthesize _userScore;
@synthesize _userGrade;
@synthesize _userStar;
@synthesize _userGoldNumber;
@synthesize _userTicketNumber;
@synthesize _mobileNum;
@synthesize _userName;
@synthesize _userUrl;
@synthesize _userGender;
@synthesize _userBirthday;
@synthesize _userAge;
@synthesize _userConstellation;
@synthesize _userAddress;
@synthesize _userSignature;
@synthesize _userLove;
@synthesize _userJob;
@synthesize _userEmail;
@synthesize _userIsNewUser;
@synthesize _userLevel;
@synthesize _userLevelPic;
@synthesize _userStart;
@synthesize _userGiveZuanNum;
@synthesize _userGainTicketNumber;
@synthesize _isLastNo;
@synthesize _isEnergyNo;
@synthesize _userRongCloudToken;
@synthesize _userIsShowEnterRoomTip;
@synthesize _userTag;
@synthesize _userStatus;
@synthesize _giftInfoListArray;
@synthesize _statsListArray;
@synthesize _isSetPayPwd;
@synthesize _isBuyZuan;
@synthesize _isFirstLive;
@synthesize _iosAuditSwitch;
@synthesize _isShowYoubi;
@synthesize _userScoreMax;
@synthesize _userScoreMin;
@synthesize _liveSysTip;
@synthesize _updateInfo;
@synthesize _isLogin;

+ (UserConfig *)shareInstance {
    static UserConfig *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[UserConfig alloc] init];
    });
    return instance;
}

- (void)userDefaultsInit {
    if (!userDefaults) {
        userDefaults = [NSUserDefaults standardUserDefaults];
    }
}
#pragma mark setter-method
- (void)set_userIsRealName:(NSString *)userIsRealName {
    if (_userIsRealName != userIsRealName) {
        [self userDefaultsInit];
        [userDefaults setObject:userIsRealName forKey:YuserIsRealName];
        [userDefaults synchronize];
    }
}

- (void)set_userIsR:(NSString *)userIsR {
    if (_userIsR != userIsR) {
        [self userDefaultsInit];
        [userDefaults setObject:userIsR forKey:YuserIsR];
        [userDefaults synchronize];
    }
}

- (void)set_user_Id:(NSString *)user_Id {
    if (_user_Id != user_Id) {
        [self userDefaultsInit];
        [userDefaults setObject:user_Id forKey:Yuser_Id];
        [userDefaults synchronize];
    }
}

- (void)set_rongyunToken:(NSString *)rongyunToken {
    if (_rongyunToken != rongyunToken) {
        [self userDefaultsInit];
        [userDefaults setObject:rongyunToken forKey:YrongyunToken];
        [userDefaults synchronize];
    }
}

- (void)set_rongyunID:(NSString *)rongyunID {
    if (_rongyunID != rongyunID) {
        [self userDefaultsInit];
        [userDefaults setObject:rongyunID forKey:YrongyunID];
        [userDefaults synchronize];
    }
}

- (void)set_appUserID:(NSString *)appUserID {
    if (_appUserID != appUserID) {
        [self userDefaultsInit];
        [userDefaults setObject:appUserID forKey:YappUserID];
        [userDefaults synchronize];
    }
}

- (void)set_userType:(NSString *)userType {
    if (_userType != userType) {
        [self userDefaultsInit];
        [userDefaults setObject:userType forKey:YuserType];
        [userDefaults synchronize];
    }
}

- (void)set_userScore:(NSString *)userScore {
    if (_userScore != userScore) {
        [self userDefaultsInit];
        [userDefaults setObject:userScore forKey:YuserScore];
        [userDefaults synchronize];
    }
}

- (void)set_userGrade:(NSString *)userGrade {
    if (_userGrade != userGrade) {
        [self userDefaultsInit];
        [userDefaults setObject:userGrade forKey:YuserGrade];
        [userDefaults synchronize];
    }
}

- (void)set_userStar:(NSString *)userStar {
    if (_userStar != userStar) {
        [self userDefaultsInit];
        [userDefaults setObject:userStar forKey:YuserStar];
        [userDefaults synchronize];
    }
}

- (void)set_userGoldNumber:(NSString *)userGoldNumber {
    if (_userGoldNumber != userGoldNumber) {
        [self userDefaultsInit];
        [userDefaults setObject:userGoldNumber forKey:YuserGoldNumber];
        [userDefaults synchronize];
    }
}

- (void)set_userTicketNumber:(NSString *)userTicketNumber {
    if (_userTicketNumber != userTicketNumber) {
        [self userDefaultsInit];
        [userDefaults setObject:userTicketNumber forKey:YuserTicketNumber];
        [userDefaults synchronize];
    }
}

- (void)set_mobileNum:(NSString *)mobileNum {
    if (_mobileNum != mobileNum) {
        [self userDefaultsInit];
        [userDefaults setObject:mobileNum forKey:YmobileNum];
        [userDefaults synchronize];
    }
}

- (void)set_userName:(NSString *)userName {
    if (_userName != userName) {
        [self userDefaultsInit];
        [userDefaults setObject:userName forKey:YuserName];
        [userDefaults synchronize];
    }
}

- (void)set_userUrl:(NSString *)userUrl {
    if (_userUrl != userUrl) {
        [self userDefaultsInit];
        [userDefaults setObject:userUrl forKey:YuserUrl];
        [userDefaults synchronize];
    }
}

- (void)set_userGender:(NSString *)userGender {
    if (_userGender != userGender) {
        [self userDefaultsInit];
        [userDefaults setObject:userGender forKey:YuserGender];
        [userDefaults synchronize];
    }
}

- (void)set_userBirthday:(NSString *)userBirthday {
    if (_userBirthday != userBirthday) {
        [self userDefaultsInit];
        [userDefaults setObject:userBirthday forKey:YuserBirthday];
        [userDefaults synchronize];
    }
}

- (void)set_userAge:(NSString *)userAge {
    if (_userAge != userAge) {
        [self userDefaultsInit];
        [userDefaults setObject:userAge forKey:YuserAge];
        [userDefaults synchronize];
    }
}

- (void)set_userConstellation:(NSString *)userConstellation {
    if (_userConstellation != userConstellation) {
        [self userDefaultsInit];
        [userDefaults setObject:userConstellation forKey:YuserConstellation];
        [userDefaults synchronize];
    }
}

- (void)set_userAddress:(NSString *)userAddress {
    if (_userAddress != userAddress) {
        [self userDefaultsInit];
        [userDefaults setObject:userAddress forKey:YuserAddress];
        [userDefaults synchronize];
    }
}

- (void)set_userSignature:(NSString *)userSignature {
    if (_userSignature != userSignature) {
        [self userDefaultsInit];
        [userDefaults setObject:userSignature forKey:YuserSignature];
        [userDefaults synchronize];
    }
}

- (void)set_userLove:(NSString *)userLove {
    if (_userLove != userLove) {
        [self userDefaultsInit];
        [userDefaults setObject:userLove forKey:YuserLove];
        [userDefaults synchronize];
    }
}

- (void)set_userJob:(NSString *)userJob {
    if (_userJob != userJob) {
        [self userDefaultsInit];
        [userDefaults setObject:userJob forKey:YuserJob];
        [userDefaults synchronize];
    }
}

- (void)set_userEmail:(NSString *)userEmail {
    if (_userEmail != userEmail) {
        [self userDefaultsInit];
        [userDefaults setObject:userEmail forKey:YuserEmail];
        [userDefaults synchronize];
    }
}

- (void)set_userIsNewUser:(NSString *)userIsNewUser {
    if (_userIsNewUser != userIsNewUser) {
        [self userDefaultsInit];
        [userDefaults setObject:userIsNewUser forKey:YuserIsNewUser];
        [userDefaults synchronize];
    }
}

- (void)set_userLevel:(NSString *)userLevel {
    if (_userLevel != userLevel) {
        [self userDefaultsInit];
        [userDefaults setObject:userLevel forKey:YuserLevel];
        [userDefaults synchronize];
    }
}

- (void)set_userLevelPic:(NSString *)userLevelPic {
    if (_userLevelPic != userLevelPic) {
        [self userDefaultsInit];
        [userDefaults setObject:userLevelPic forKey:YuserLevelPic];
        [userDefaults synchronize];
    }
}

- (void)set_userStart:(NSString *)userStart {
    if (_userStart != userStart) {
        [self userDefaultsInit];
        [userDefaults setObject:userStart forKey:YuserStart];
        [userDefaults synchronize];
    }
}

- (void)set_userGiveZuanNum:(NSString *)userGiveZuanNum {
    if (_userGiveZuanNum != userGiveZuanNum) {
        [self userDefaultsInit];
        [userDefaults setObject:userGiveZuanNum forKey:YuserGiveZuanNum];
        [userDefaults synchronize];
    }
}

- (void)set_userGainTicketNumber:(NSString *)userGainTicketNumber {
    if (_userGainTicketNumber != userGainTicketNumber) {
        [self userDefaultsInit];
        [userDefaults setObject:userGainTicketNumber forKey:YuserGainTicketNumber];
        [userDefaults synchronize];
    }
}

- (void)set_isLastNo:(NSString *)isLastNo {
    if (_isLastNo != isLastNo) {
        [self userDefaultsInit];
        [userDefaults setObject:isLastNo forKey:YisLastNo];
        [userDefaults synchronize];
    }
}

- (void)set_isEnergyNo:(NSString *)isEnergyNo {
    if (_isEnergyNo != isEnergyNo) {
        [self userDefaultsInit];
        [userDefaults setObject:isEnergyNo forKey:YisEnergyNo];
        [userDefaults synchronize];
    }
}

- (void)set_userRongCloudToken:(NSString *)userRongCloudToken{
    if (_userRongCloudToken != userRongCloudToken) {
        [self userDefaultsInit];
        [userDefaults setObject:userRongCloudToken forKey:YuserRongCloudToken];
        [userDefaults synchronize];
    }
}

- (void)set_userTag:(NSString *)userTag{
    if (_userTag != userTag) {
        [self userDefaultsInit];
        [userDefaults setObject:userTag forKey:YuserTag];
        [userDefaults synchronize];
    }
}

- (void)set_userStatus:(NSString *)userStatus {
    if (_userStatus != userStatus) {
        [self userDefaultsInit];
        [userDefaults setObject:userStatus forKey:YuserStatus];
        [userDefaults synchronize];
    }
}

- (void)set_userIsShowEnterRoomTip:(NSString *)userIsShowEnterRoomTip{
    if (_userIsShowEnterRoomTip != userIsShowEnterRoomTip) {
        [self userDefaultsInit];
        [userDefaults setObject:userIsShowEnterRoomTip forKey:YuserIsShowEnterRoomTip];
        [userDefaults synchronize];
    }
}

- (void)set_giftInfoListArray:(NSArray *)giftInfoListArray{
    if (_giftInfoListArray != giftInfoListArray) {
        [self userDefaultsInit];
        [userDefaults setObject:giftInfoListArray forKey:YgiftInfoListArray];
        [userDefaults synchronize];
    }
}
- (void)set_statsListArray:(NSArray *)statsListArray{
    if (_statsListArray != statsListArray) {
        [self userDefaultsInit];
        [userDefaults setObject:statsListArray forKey:YstatsListArray];
        [userDefaults synchronize];
    }
}

- (void)set_isSetPayPwd:(NSString *)isSetPayPwd{
    if (_isSetPayPwd != isSetPayPwd) {
        [self userDefaultsInit];
        [userDefaults setObject:isSetPayPwd forKey:YisSetPayPwd];
        [userDefaults synchronize];
    }
}

- (void)set_isBuyZuan:(NSString *)isBuyZuan{
    if (_isBuyZuan != isBuyZuan) {
        [self userDefaultsInit];
        [userDefaults setObject:isBuyZuan forKey:YisBuyZuan];
        [userDefaults synchronize];
    }
}

- (void)set_isFirstLive:(NSString *)isFirstLive{
    if (_isFirstLive != isFirstLive) {
        [self userDefaultsInit];
        [userDefaults setObject:isFirstLive forKey:YisFirstLive];
        [userDefaults synchronize];
    }
}

- (void)set_iosAuditSwitch:(NSString *)iosAuditSwitch{
    if (_iosAuditSwitch != iosAuditSwitch) {
        [self userDefaultsInit];
        [userDefaults setObject:iosAuditSwitch forKey:YiosAuditSwitch];
        [userDefaults synchronize];
    }
}

- (void)set_isShowYoubi:(NSString *)isShowYoubi {
    if (_isShowYoubi != isShowYoubi) {
        [self userDefaultsInit];
        [userDefaults setObject:isShowYoubi forKey:YisShowYoubi];
        [userDefaults synchronize];
    }
}

- (void)set_userScoreMax:(NSString *)userScoreMax {
    if (_userScoreMax != userScoreMax) {
        [self userDefaultsInit];
        [userDefaults setObject:userScoreMax forKey:YuserScoreMax];
        [userDefaults synchronize];
    }
}

- (void)set_userScoreMin:(NSString *)userScoreMin {
    if (_userScoreMin != userScoreMin) {
        [self userDefaultsInit];
        [userDefaults setObject:userScoreMin forKey:YuserScoreMin];
        [userDefaults synchronize];
    }
}

- (void)set_liveSysTip:(NSString *)liveSysTip {
    if (_liveSysTip != liveSysTip) {
        [self userDefaultsInit];
        [userDefaults setObject:liveSysTip forKey:YliveSysTip];
        [userDefaults synchronize];
    }
}

- (void)set_updateInfo:(NSDictionary *)updateInfo {
    if (_updateInfo != updateInfo) {
        [self userDefaultsInit];
        [userDefaults setObject:updateInfo forKey:YupdateInfo];
        [userDefaults synchronize];
    }
}

- (void)set_isLogin:(BOOL)isLogin {
    if (_isLogin != isLogin) {
        [self userDefaultsInit];
        [userDefaults setBool:isLogin forKey:YisLogin];
        [userDefaults synchronize];
    }
}

#pragma mark getterMethod
- (NSString *)_userIsRealName {
    [self userDefaultsInit];
    NSString *userIsRealName = [userDefaults objectForKey:YuserIsRealName];
    return userIsRealName;
}

- (NSString *)_userIsR {
    [self userDefaultsInit];
    NSString *userIsR = [userDefaults objectForKey:YuserIsR];
    return userIsR;
}

- (NSString *)_appUserID {
    [self userDefaultsInit];
    NSString *appUserID = [userDefaults objectForKey:YappUserID];
    return appUserID;
}

- (NSString *)_user_Id {
    [self userDefaultsInit];
    NSString *user_Id = [userDefaults objectForKey:Yuser_Id];
    return user_Id;
}

- (NSString *)_rongyunToken {
    [self userDefaultsInit];
    NSString *rongyunToken = [userDefaults objectForKey:YrongyunToken];
    return rongyunToken;
}

- (NSString *)_rongyunID {
    [self userDefaultsInit];
    NSString *rongyunID = [userDefaults objectForKey:YrongyunID];
    return rongyunID;
}

- (NSString *)_userType {
    [self userDefaultsInit];
    NSString *userType = [userDefaults objectForKey:YuserType];
    return userType;
}

- (NSString *)_userScore {
    [self userDefaultsInit];
    NSString *userScore = [userDefaults objectForKey:YuserScore];
    return userScore;
}

- (NSString *)_userGrade {
    [self userDefaultsInit];
    NSString *userGrade = [userDefaults objectForKey:YuserGrade];
    return userGrade;
}

- (NSString *)_userStar {
    [self userDefaultsInit];
    NSString *userStar = [userDefaults objectForKey:YuserStar];
    return userStar;
}

- (NSString *)_userGoldNumber {
    [self userDefaultsInit];
    NSString *userGoldNumber = [userDefaults objectForKey:YuserGoldNumber];
    return userGoldNumber;
}

- (NSString *)_userTicketNumber {
    [self userDefaultsInit];
    NSString *userTicketNumber = [userDefaults objectForKey:YuserTicketNumber];
    return userTicketNumber;
}

- (NSString *)_userName {
    [self userDefaultsInit];
    NSString *userName = [userDefaults objectForKey:YuserName];
    return userName;
}

- (NSString *)_mobileNum {
    [self userDefaultsInit];
    NSString *mobileNum = [userDefaults objectForKey:YmobileNum];
    return mobileNum;
}

- (NSString *)_userUrl {
    [self userDefaultsInit];
    NSString *userUrl = [userDefaults objectForKey:YuserUrl];
    return userUrl;
}

- (NSString *)_userGender {
    [self userDefaultsInit];
    NSString *userGender = [userDefaults objectForKey:YuserGender];
    return userGender;
}

- (NSString *)_userBirthday {
    [self userDefaultsInit];
    NSString *userBirthday = [userDefaults objectForKey:YuserBirthday];
    return userBirthday;
}

- (NSString *)_userAge {
    [self userDefaultsInit];
    NSString *userAge = [userDefaults objectForKey:YuserAge];
    return userAge;
}

- (NSString *)_userConstellation {
    [self userDefaultsInit];
    NSString *userConstellation = [userDefaults objectForKey:YuserConstellation];
    return userConstellation;
}

- (NSString *)_userAddress {
    [self userDefaultsInit];
    NSString *userAddress = [userDefaults objectForKey:YuserAddress];
    return userAddress;
}

- (NSString *)_userSignature {
    [self userDefaultsInit];
    NSString *userSignature = [userDefaults objectForKey:YuserSignature];
    return userSignature;
}

- (NSString *)_userLove {
    [self userDefaultsInit];
    NSString *userLove = [userDefaults objectForKey:YuserLove];
    return userLove;
}

- (NSString *)_userJob {
    [self userDefaultsInit];
    NSString *userJob = [userDefaults objectForKey:YuserJob];
    return userJob;
}

- (NSString *)_userEmail {
    [self userDefaultsInit];
    NSString *userEmail = [userDefaults objectForKey:YuserEmail];
    return userEmail;
}

- (NSString *)_userIsNewUser {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserIsNewUser];
    return userIsNewUser;
}

- (NSString *)_userLevel {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserLevel];
    return userIsNewUser;
}

- (NSString *)_userLevelPic {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserLevelPic];
    return userIsNewUser;
}

- (NSString *)_userStart {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserStart];
    return userIsNewUser;
}

- (NSString *)_userGiveZuanNum {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserGiveZuanNum];
    return userIsNewUser;
}

- (NSString *)_userGainTicketNumber {
    [self userDefaultsInit];
    NSString *userGainTicketNumber = [userDefaults objectForKey:YuserGainTicketNumber];
    return userGainTicketNumber;
}

- (NSString *)_isLastNo {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YisLastNo];
    return userIsNewUser;
}

- (NSString *)_isEnergyNo {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YisEnergyNo];
    return userIsNewUser;
}

- (NSString *)_userRongCloudToken {
    [self userDefaultsInit];
    NSString *userIsNewUser = [userDefaults objectForKey:YuserRongCloudToken];
    return userIsNewUser;
}

- (NSString *)_userTag {
    [self userDefaultsInit];
    NSString *userTag = [userDefaults objectForKey:YuserTag];
    return userTag;
}

- (NSString *)_userStatus {
    [self userDefaultsInit];
    NSString *userStatus = [userDefaults objectForKey:YuserStatus];
    return userStatus;
}

- (NSString *)_userIsShowEnterRoomTip {
    [self userDefaultsInit];
    NSString *userIsShowEnterRoomTip = [userDefaults objectForKey:YuserIsShowEnterRoomTip];
    return userIsShowEnterRoomTip;
}

- (NSArray *)_giftInfoListArray {
    [self userDefaultsInit];
    NSArray *giftInfoListArray = [userDefaults objectForKey:YgiftInfoListArray];
    return giftInfoListArray;
}
- (NSArray *)_statsListArray {
    [self userDefaultsInit];
    NSArray *statsListArray = [userDefaults objectForKey:YstatsListArray];
    return statsListArray;
}

- (NSString *)_isSetPayPwd {
    [self userDefaultsInit];
    NSString *isSetPayPwd = [userDefaults objectForKey:YisSetPayPwd];
    return isSetPayPwd;
}

- (NSString *)_isBuyZuan {
    [self userDefaultsInit];
    NSString *isBuyZuan = [userDefaults objectForKey:YisBuyZuan];
    return isBuyZuan;
}

- (NSString *)_isFirstLive {
    [self userDefaultsInit];
    NSString *isFirstLive = [userDefaults objectForKey:YisFirstLive];
    return isFirstLive;
}

- (NSString *)_iosAuditSwitch {
    [self userDefaultsInit];
    NSString *iosAuditSwitch = [userDefaults objectForKey:YiosAuditSwitch];
    return iosAuditSwitch;
}

- (NSString *)_isShowYoubi {
    [self userDefaultsInit];
    NSString *isShowYoubi = [userDefaults objectForKey:YisShowYoubi];
    return isShowYoubi;
}

- (NSString *)_userScoreMin {
    [self userDefaultsInit];
    NSString *userScoreMin = [userDefaults objectForKey:YuserScoreMin];
    return userScoreMin;
}

- (NSString *)_userScoreMax {
    [self userDefaultsInit];
    NSString *userScoreMax = [userDefaults objectForKey:YuserScoreMax];
    return userScoreMax;
}

- (NSString *)_liveSysTip {
    [self userDefaultsInit];
    NSString *liveSysTip = [userDefaults objectForKey:YliveSysTip];
    return liveSysTip;
}

- (NSDictionary *)_updateInfo {
    [self userDefaultsInit];
    NSDictionary *updateInfo = [userDefaults objectForKey:YupdateInfo];
    return updateInfo;
}

- (BOOL)_isLogin {
    [self userDefaultsInit];
    BOOL isLogin = [userDefaults boolForKey:YisLogin];
    return isLogin;
}

+ (void)clearUserConfig {
    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
    [userDefault removeObjectForKey:YuserIsRealName];
    [userDefault removeObjectForKey:YuserIsR];
    [userDefault removeObjectForKey:YappUserID];
    [userDefault removeObjectForKey:Yuser_Id];
    [userDefault removeObjectForKey:YrongyunToken];
    [userDefault removeObjectForKey:YrongyunID];
    [userDefault removeObjectForKey:YuserType];
    [userDefault removeObjectForKey:YuserScore];
    [userDefault removeObjectForKey:YuserGrade];
    [userDefault removeObjectForKey:YuserStar];
    [userDefault removeObjectForKey:YuserGoldNumber];
    [userDefault removeObjectForKey:YuserTicketNumber];
    [userDefault removeObjectForKey:YmobileNum];
    [userDefault removeObjectForKey:YuserName];
    [userDefault removeObjectForKey:YuserUrl];
    [userDefault removeObjectForKey:YuserGender];
    [userDefault removeObjectForKey:YuserBirthday];
    [userDefault removeObjectForKey:YuserAge];
    [userDefault removeObjectForKey:YuserConstellation];
    [userDefault removeObjectForKey:YuserAddress];
    [userDefault removeObjectForKey:YuserSignature];
    [userDefault removeObjectForKey:YuserLove];
    [userDefault removeObjectForKey:YuserJob];
    [userDefault removeObjectForKey:YuserEmail];
    [userDefault removeObjectForKey:YuserIsNewUser];
    [userDefault removeObjectForKey:YuserLevel];
    [userDefault removeObjectForKey:YuserLevelPic];
    [userDefault removeObjectForKey:YuserStart];
    [userDefault removeObjectForKey:YuserGiveZuanNum];
    [userDefault removeObjectForKey:YuserGainTicketNumber];
    [userDefault removeObjectForKey:YisLastNo];
    [userDefault removeObjectForKey:YisEnergyNo];
    [userDefault removeObjectForKey:YisLogin];
    [userDefault removeObjectForKey:YuserRongCloudToken];
    [userDefault removeObjectForKey:YuserTag];
    [userDefault removeObjectForKey:YuserStatus];
    [userDefault removeObjectForKey:YuserIsShowEnterRoomTip];
    [userDefault removeObjectForKey:YgiftInfoListArray];
    [userDefault removeObjectForKey:YstatsListArray];
    [userDefault removeObjectForKey:YisSetPayPwd];
    [userDefault removeObjectForKey:YisBuyZuan];
    [userDefault removeObjectForKey:YisFirstLive];
    [userDefault removeObjectForKey:YiosAuditSwitch];
    [userDefault removeObjectForKey:YisShowYoubi];
    [userDefault removeObjectForKey:YuserScoreMax];
    [userDefault removeObjectForKey:YuserScoreMin];
    [userDefault removeObjectForKey:YliveSysTip];
    [userDefault removeObjectForKey:YupdateInfo];
    [userDefault synchronize];
}

@end
